//
//  WYTCityItemCell.m
//  WuyouTang
//
//  Created by yunbao02 on 2024/8/28.
//  Copyright © 2024 cat. All rights reserved.
//

#import "WYTCityItemCell.h"

@implementation WYTCityItemCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
    _bgView.backgroundColor = Normal_SubColor;
}

+(WYTCityItemCell *)cellWithTab:(UITableView *)table index:(NSIndexPath *)index {
    WYTCityItemCell *cell = [table dequeueReusableCellWithIdentifier:@"WYTCityItemCell"];
    if (!cell) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"WYTCityItemCell" owner:nil options:nil]objectAtIndex:0];
    }
    cell.backgroundColor = UIColor.clearColor;
    cell.contentView.backgroundColor = UIColor.clearColor;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

- (void)setDataDic:(NSDictionary *)dataDic {
    _dataDic = dataDic;
    
    [_avatarIV sd_setImageWithURL:[NSURL URLWithString:strFormat([_dataDic valueForKey:@"avatar"])]];
    _nameL.text = strFormat([_dataDic valueForKey:@"name"]);
    
    
}


@end
